package com.jy.bo.common.conf.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: binary
 * Date: 2020/4/29
 * Time: 下午2:16
 */
@Component
public class FileConfigUtil {

    @NacosValue(value = "${server.test}", autoRefreshed = true)
    private boolean isServerTest;

    /**
     * 是否测试环境
     *
     * @return
     */
    public boolean isServerTest() {
        return isServerTest;
    }


}
